package com.example.sxt_practise.annotation;

/**
 * @author gaofeng
 * @date 2022年06月05日 9:40
 */
@MyTable("tb_student")
public class MyStudent {
    @MyField(columnName = "id", fieldType = "int", len = 11)
    private int id ;
    @MyField(columnName = "stu_name", fieldType = "varchar", len = 20)
    private String stuName ;
    @MyField(columnName = "id", fieldType = "int", len = 11)
    private int age ;

    public MyStudent(int id, String stuName, int age) {
        this.id = id;
        this.stuName = stuName;
        this.age = age;
    }
    public MyStudent() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
